/*
 * File:   testHotel.cpp
 * Author: Javier
 *
 * Created on Feb 8, 2015, 4:50:04 AM
 */

#include "testHotel.h"
#include "../Hotel.h"



CPPUNIT_TEST_SUITE_REGISTRATION(testHotel);

testHotel::testHotel() {
}

testHotel::~testHotel() {
}

void testHotel::setUp() {
}

void testHotel::tearDown() {
}

void testHotel::testConstructor() {
    string hotelName = "test1";
    string address = "test2";
    
    Hotel h(hotelName,address);
    
    CPPUNIT_ASSERT_EQUAL(hotelName, h.getHotelName());
    CPPUNIT_ASSERT_EQUAL(address, h.getAddress());  
}

void testHotel::testGet()
{
    Hotel h("test1","test2");
    CPPUNIT_ASSERT(h.getHotelName() == "test1");
    CPPUNIT_ASSERT(h.getAddress() == "test2");
}

void testHotel::testSet()
{
    Hotel h;
    h.setHotelName("test1");
    h.setAddress("test2");
    
    CPPUNIT_ASSERT(h.getHotelName() == "test1");
    CPPUNIT_ASSERT(h.getAddress() == "test2");
}


